package com.zmn.plat.common.dto.channel.category;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;

/**
 * @author tanbiao
 * @description
 * @modifier
 * @since 2021/1/20 16:49
 **/
@Data
@Valid
public class ChannelCategorySimpleSpellDIO implements Serializable {
    private static final long serialVersionUID = -263621087514939752L;

    /**
     * 渠道id
     */
    @NotNull(message = "channelId不能为空")
    @Positive(message = "channelId必须为大于0的正整数")
    private Integer channelId;

    /**
     * 城市id
     */
    @NotNull(message = "cityId不能为空")
    @Positive(message = "cityId必须为大于0的正整数")
    private Integer cityId;

    /**
     * 分类简称
     */
    @NotBlank(message = "tariffName不能为空")
    private String simpleSpell;
}
